package xyz.heyaoshare.core.controller.system.user.vo.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import xyz.heyaoshare.utils.DateUtils;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 用户详情响应对象
 * @author YueHe
 * @version 0.0.1
 * @since 2025/5/9 下午3:35
 */
@Data
@Schema(description = "用户详情响应对象")
public class UserDetailRespVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户ID")
    private Long id;

    @Schema(description = "姓名")
    private String nickname;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "性别")
    private Integer gender;

    @Schema(description = "性别文本")
    private String genderStr;

    @Schema(description = "注册时间")
    @JsonFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS, timezone = DateUtils.TIME_ZONE)
    private LocalDateTime registerTime;

    @Schema(description = "角色ID列表")
    private List<Long> roleIds;

}